home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Chip 2004 December
/
2004-12 CHIP.iso
/
CHIP
/
Porady
/
Srodowisko PHP-MySQL
/
ACTIVESTATE PERL ADD-ON
/
PERL_add-on.exe
/
{app}
/
perl
/
bin
/
stubmaker.pl
< prev
next >
Wrap
Perl Script
|
2004-06-01
|
726b
|
28 lines
#!/bin/env perl
#!d:\perl\bin\perl.exe
# -- SOAP::Lite -- soaplite.com -- Copyright (C) 2001 Paul Kulchenko --
use SOAP::Lite;
print "Accessing...\n";
my $schema = SOAP::Schema
-> schema(shift or die "Usage: $0 <URL with schema description> [<service> [<port>]]\n")
-> parse(@ARGV);
print "Writing...\n";
foreach (keys %{$schema->services}) {
my $file = "./$_.pm";
print("$file exists, skipped...\n"), next if -s $file;
open(F, ">$file") or die $!;
print F $schema->stub($_);
close(F) or die $!;
print "$file done\n";
}
# try
# > perl stubmaker.pl http://www.xmethods.net/sd/StockQuoteService.wsdl
# then
# > perl "-MStockQuoteService qw(:all)" -le "print getQuote('MSFT')"